package com.ymatou.iapi.godmch.service;

import com.google.gson.JsonArray;
import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*商户名称获取商户id列表Call
*FreeMaker Template自动生成代码
*/
public class getMchIdListByMchTitleCall extends YmatouBaseCall{
	private static String opurl ="api/mch/getMchIdListByMchTitle";
	
	public getMchIdListByMchTitleCall() {
		super(EnvSetup.getSystemUrl("godmch_iapi"),opurl,"GET","PARAM");
	}
	@Override
	public void addDefHeader() {
		//client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public String getStatus1()
	{
		return getString("status");
	}
			
	public String getMessage()
	{
		return getString("msg");
	}
	
	public JsonArray getmchIdList()
	{
		JsonArray array=getJsonObject().get("result").getAsJsonObject().get("mchIdList").getAsJsonArray();
		return array;
	}
}